#!/bin/bash

while true
do
echo "input num"
read num
if [ ${num} -eq 1 ];then
   echo "exit system"
   exit 0
fi
done